<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
	<script type="text/javascript" src="/deng/include/include-css.js"></script>
	<script type="text/javascript" src="/deng/include/inplug-css.js"></script>
	<link href="/deng/source/css/bootlist.css" rel="stylesheet" type="text/css" />
	<title>资源管理</title>

</head>
<body>
<div class="m-content jehc-content-1">
	<div class="m-portlet">
		<div class="m-portlet__head">
			<div class="m-portlet__head-caption">
				<div class="m-portlet__head-title">
					<h3 class="m-portlet__head-text">
						<span class="m-accordion__item-icon"><i class="flaticon-search"></i>资源列表</span>
					</h3>
				</div>
			</div>
		</div>
		<form class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed" method="POST" id="searchForm">
			<div class="m-portlet__foot m-portlet__no-border m-portlet__foot--fit">
				<div class="m-form__actions m-form__actions--solid">
					<div class="row">
						<div class="col m--align-left">
							<a class="btn btn-light-primary font-weight-bold mr-2 m-btn--custom m-btn--bolder m-btn--uppercase" href="javascript:addXtMenuinfo()">
								<span><i class="flaticon-add-circular-button"></i><span>创建资源</span></span>
							</a>
							<!--
							<a class="btn btn-accent m-btn m-btn&#45;&#45;custom m-btn&#45;&#45;bolder m-btn&#45;&#45;uppercase" href="javascript:expandTree()">
								<span><i class="flaticon-arrows"></i><span>展 开</span></span>
							</a>
							<a class="btn btn-brand m-btn m-btn&#45;&#45;custom m-btn&#45;&#45;bolder m-btn&#45;&#45;uppercase" href="javascript:collapseTree()">
								<span><i class="flaticon-logout"></i><span>折 叠</span></span>
							</a>
							-->
						</div>
						<div class="col m--align-right">
							<a class="btn btn-light-warning font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" href="javascript:initSysModeTable()">
								<span><i class="fa fa-spin fa-refresh m-r-5"></i><span>刷 新</span></span>
							</a>
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
<table id="table"></table>

<!-- 创建资源页面模态框（Modal）开始 -->
<div class="modal fade" id="addXtMenuinfoModal" tabindex="-1" role="dialog" aria-labelledby="addXtMenuinfoModalLabel" aria-hidden="true">
	<div class="modal-dialog modal-lg modal-dialog-centered">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title" id="addXtMenuinfoModalLabel">
					创建资源
				</h4>
			</div>
			<div class="modal-body">
				<form id="addXtMenuinfoForm" method="post">
					<div class="row">
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_title">资源标题</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<input class="form-control placeholder-no-fix" type="text" placeholder="请输入资源标题" data-bv-notempty data-bv-notempty-message="请输入资源标题" name="resources_title"/>
							</div>
						</div>
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_url">访问地址</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<input class="form-control placeholder-no-fix" type="text"  placeholder="请输入访问地址"  name="resources_url"/>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_parentid">上级资源</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<input class="form-control placeholder-no-fix" type="hidden" name="resources_parentid" id="resources_parentid"/>
								<input class="form-control placeholder-no-fix" type="text" id="resources_parentTitle" disabled="disabled"/>
							</div>
						</div>
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_leaf">存在下级</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<select class="form-control" maxlength="32" name="resources_leaf">
									<option value="0">是</option>
									<option value="1">否</option>
								</select>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_iconCls">字体图标</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<input class="form-control placeholder-no-fix" type="text" placeholder="请输入字体图标"  name="resources_iconCls"/>
							</div>
						</div>
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_sys">是否平台资源</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<select class="form-control" maxlength="32" name="resources_sys">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_module_id">所属模块</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<select class="form-control" maxlength="32" name="resources_module_id" id="resources_module_id">
								</select>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_sort">排序编号</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<input class="form-control placeholder-no-fix" type="text" value="0" data-bv-numeric data-bv-numeric-message="排序编号数字类型"  placeholder="请输入排序编号" data-bv-notempty data-bv-notempty-message="请输入排序编号"  name="resources_sort"/>
							</div>
						</div>
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_status">资源状态</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<select class="form-control" maxlength="32" name="resources_status">
									<option value="0">可用</option>
									<option value="1">禁用</option>
								</select>
							</div>
						</div>
					</div>
				</form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-secondary m-btn m-btn--custom m-btn--icon" data-dismiss="modal">关 闭</button>
				<button type="button" class="btn btn-light-primary font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" onclick="doAddXtMenuinfo()">提交更改</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
<!-- 创建资源页面模态框（Modal）结束 -->


<!-- 资源页面模态框（Modal）开始 -->
<div class="modal fade" id="updateXtMenuinfoModal" tabindex="-1" role="dialog" aria-labelledby="updateXtMenuinfoModalLabel" aria-hidden="true">
	<div class="modal-dialog modal-lg modal-dialog-centered">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title" id="updateXtMenuinfoModalLabel">
					编辑资源
				</h4>
			</div>
			<div class="modal-body">
				<form id="updateXtMenuinfoForm" method="post">
					<div class="row">
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_title">资源标题</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<input class="form-control placeholder-no-fix" type="text" placeholder="请输入资源标题" data-bv-notempty data-bv-notempty-message="请输入资源标题" name="resources_title" id="resources_title"/>
							</div>
						</div>
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_module_idTemp">所属模块</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<input class="form-control placeholder-no-fix" type="hidden" id="resources_module_idTemp"/>
								<select class="form-control" maxlength="32" name="resources_module_id" id="resources_module_id_">
								</select>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="xt_menuinfo_parentId">上级资源</label>
						</div>
						<div class="col-md-4">
							<div class="form-group input-group">
								<input class="form-control placeholder-no-fix" type="hidden" name="resources_parentid" id="resources_parentid_"/>
								<input class="form-control placeholder-no-fix" type="hidden" name="resources_id" id="resources_id"/>
								<input class="form-control placeholder-no-fix" type="text" id="resources_parentidTitle_" disabled="disabled"/>
								<span class="input-group-btn">
										<button class="btn btn-default" type="button" onclick="changeMenuinfoSelect()">
											选择
										</button>
									</span>
							</div>
						</div>
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_leaf">存在下级</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<select class="form-control" maxlength="32" name="resources_leaf" id="resources_leaf">
									<option value="0">是</option>
									<option value="1">否</option>
								</select>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_iconCls">字体图标</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<input class="form-control placeholder-no-fix" type="text" placeholder="请输入字体图标"  name="resources_iconCls" id="resources_iconCls"/>
							</div>
						</div>
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_sys">是否平台资源</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<select class="form-control" maxlength="32" name="resources_sys" id="resources_sys">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_url">访问地址</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<input class="form-control placeholder-no-fix" type="text"  placeholder="请输入访问地址"  name="resources_url" id="resources_url"/>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_sort">排序编号</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<input class="form-control placeholder-no-fix" type="text" value="0" data-bv-numeric data-bv-numeric-message="排序编号数字类型"  placeholder="请输入排序编号" data-bv-notempty data-bv-notempty-message="请输入排序编号"  name="resources_sort"  id="resources_sort"/>
							</div>
						</div>
						<div class="col-md-2">
							<label class="col-form-label" jEhcLang="resources_status">资源状态</label>
						</div>
						<div class="col-md-4">
							<div class="form-group">
								<select class="form-control" maxlength="32" name="resources_status" id="resources_status">
									<option value="0">可用</option>
									<option value="1">禁用</option>
								</select>
							</div>
						</div>
					</div>
				</form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-secondary m-btn m-btn--custom m-btn--icon" data-dismiss="modal">关闭</button>
				<button type="button" class="btn btn-light-primary font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" onclick="doUpdateXtMenuinfo()">提交更改</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
<!-- 资源编辑页面模态框（Modal）结束 -->


<!-- 资源上级变更页面模态框（Modal）开始 -->
<div class="modal fade" id="changeXtMenuinfoModal" tabindex="-1" role="dialog" aria-labelledby="changeXtMenuinfoModalLabel" aria-hidden="true">
	<div class="modal-dialog modal-lg modal-dialog-centered">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title" id="changeXtMenuinfoModalLabel">
					上级资源
				</h4>
			</div>
			<div class="modal-body" id="changeXtMenuinfoBody" style="overflow:auto;">
				<div class="form-group m-form__group row">
					<label class="col-form-label">隶属平台:</label>
					<div class="col-lg-3">
						<select class="form-control" id="sysmode_id" placeholder="请选择" onchange="doThisEvent(this)">
							<option value="">请选择</option>
						</select>
					</div>
				</div>
				<div class="form-group m-form__group row">
					<ul id="tree" class="ztree">暂无数据</ul>
				</div>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-secondary m-btn m-btn--custom m-btn--icon" data-dismiss="modal">关闭</button>
				<button type="button" class="btn btn-light-primary font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" onclick="doXtMenuinfoSel()">确认</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
<!-- 资源上级变更页面模态框（Modal）结束 -->
</body>
<script type="text/javascript" src="/deng/include/include.js"></script>
<script type="text/javascript" src="/deng/include/inplug.js"></script>
<script type="text/javascript" src="/deng/view/oauth/oauth-resources/oauth-resources-list.js"></script>
<script type="text/javascript" src="/deng/view/oauth/oauth-resources/oauth-resources-add.js"></script>
<script type="text/javascript" src="/deng/view/oauth/oauth-resources/oauth-resources-update.js"></script>
<link href="/deng/source/plugins/other/bootstrap-table-treegrid/version_/assets/bootstrap-table.css" rel="stylesheet">
<script type="text/javascript" src="/deng/source/plugins/other/bootstrap-table-treegrid/version_/assets/bootstrap-table.js"></script>
<script type="text/javascript" src="/deng/source/plugins/other/bootstrap-table-treegrid/js/bootstrap-table-zh-CN.js"></script>
<script type="text/javascript" src="/deng/source/plugins/other/bootstrap-table-treegrid/version_/src/bootstraptable-treeview.js"></script>
<style>
	/* dataTables表头居中 */
	.table>thead:first-child>tr:first-child>th {
		text-align: left;
		background-color: #fff;
		font-weight: normal;
	}
	.fixed-table-container thead th .th-inner, .fixed-table-container tbody td .th-inner {
		padding: 8px;
		line-height: 24px;
		vertical-align: top;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.table>thead:first-child>tr:first-child>th p{
		text-align:left;
		font-weight:normal;
	}
	.table>tbody>tr>td {
		text-align:left;
	}
	.fixed-table-container .bs-checkbox {
		text-align:left;
	}
	/*.table>thead:first-child>tr:first-child>th {
		background-color: #fff;
	}*/
	.bootstrap-table .table {
		margin-bottom: 0 !important;
		border-bottom: 1px solid #ebedf2;
		border-collapse: collapse !important;
		border-radius: 1px;
	}
	.table-striped tbody tr:nth-of-type(odd) {
		background-color: #faf9fc;;
	}
	.fixed-table-container tbody td {
		border-left: 1px solid #ebedf2;
	}
	[class*=" la-"], [class^="la-"] {
		font-size: 1.1rem;
	}

	.bootstrap-table .table > thead > tr > th {
		border-bottom: 0px solid #ebedf2;
	}

	.fixed-table-container {
		position: relative;
		clear: both;
		border: 0px solid #dddddd;
		border-radius: 4px;
		-webkit-border-radius: 4px;
		-moz-border-radius: 4px;
	}

	[class*=" flaticon-"], [class^=flaticon-] {
		font-size: 1.3rem;
		padding: 8px;
	}
/*
	.bootstrap-table .table:not(.table-condensed), .bootstrap-table .table:not(.table-condensed) > tbody > tr > th, .bootstrap-table .table:not(.table-condensed) > tfoot > tr > th, .bootstrap-table .table:not(.table-condensed) > thead > tr > td, .bootstrap-table .table:not(.table-condensed) > tbody > tr > td, .bootstrap-table .table:not(.table-condensed) > tfoot > tr > td {
		padding-bottom: 20px;
		padding-top: 20px;
	}*/
	.table>thead:first-child>tr:first-child>th {
		background-color: #f5f5f5;
	}
</style>
</html>